/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Skyflow from "../../../index"; export declare namespace Strings { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } export declare class Strings { protected readonly _options: Strings.Options; constructor(_options: Strings.Options); /** * De-identifies sensitive data from a string. * * @param {Skyflow.DeidentifyStringRequest} request * @param {Strings.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Skyflow.BadRequestError} * @throws {@link Skyflow.UnauthorizedError} * @throws {@link Skyflow.InternalServerError} * * @example * await client.strings.deidentifyString({ * vault_id: "f4b3b3b33b3b3b3b3b3b3b3b3b3b3b3b", * text: "My name is John Doe, and my email is johndoe@acme.com." * }) * * @example * await client.strings.deidentifyString({ * vault_id: "f4b3b3b33b3b3b3b3b3b3b3b3b3b3b3b", * text: "S: 62yo female here for first visit. No concerns today. Her FP (Dr. Benyamin) is retiring soon. Up to date on pap, mammo, labs, BMD. On the waitlist for colonoscopy. Past Medical and Surgical hx: nil. Meds: nil. Allergies: Pn. Family and Social hx: see CPP. O: Temp 35.2;BP 145-73; HR 58. Appears well. A: First visit. P: CPP updated. RTC prn. A007. First visit. Type Name: Clinical Note" * }) * * @example * await client.strings.deidentifyString({ * vault_id: "f4b3b3b33b3b3b3b3b3b3b3b3b3b3b3b", * text: "My name is John Doe, and my email is johndoe@acme.com.", * entity_types: ["name", "email_address"], * token_type: { * default: "entity_only" * } * }) * * @example * await client.strings.deidentifyString({ * vault_id: "VAULT_ID", * text: "My name is John Doe, and my email is johndoe@acme.com.", * token_type: { * default: "vault_token" * } * }) * * @example * await client.strings.deidentifyString({ * vault_id: "VAULT_ID", * text: "My name is John Doe, and my email is johndoe@acme.com." * }) * * @example * await client.strings.deidentifyString({ * vault_id: "VAULT_ID", * text: "My name is John, and my email is johndoe@acme.com.", * entity_types: ["name", "email_address"], * token_type: { * default: "entity_only" * }, * allow_regex: ["John"], * transformations: { * shift_dates: { * max_days: 5, * min_days: 1, * entity_types: ["date"] * } * } * }) */ deidentifyString(request: Skyflow.DeidentifyStringRequest, requestOptions?: Strings.RequestOptions): core.HttpResponsePromise; private __deidentifyString; /** * Re-identifies tokens in a string. * * @param {Skyflow.ReidentifyStringRequest} request * @param {Strings.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Skyflow.BadRequestError} * @throws {@link Skyflow.UnauthorizedError} * @throws {@link Skyflow.InternalServerError} * * @example * await client.strings.reidentifyString({ * text: "My name is [NAME_1], and my email is [EMAIL_1].", * vault_id: "1ad6db07-8405-46cf-9a1e-db148ff9f4c5" * }) */ reidentifyString(request: Skyflow.ReidentifyStringRequest, requestOptions?: Strings.RequestOptions): core.HttpResponsePromise; private __reidentifyString; protected _getAuthorizationHeader(): Promise; }